<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>

	</head>
	<body>
		<script>
			var Book = (function(){
				// 静态私有方法及属性
				var bookNum = 0;
				function checkBook(name){}
				// 创建类
				function _book(newId, newName, newPrice){
					// 私有方法及属性
					var name, price;
					function checkID(){};
					
					// 特权方法 --设置及获取
					this.getName = function(){};
					this.getPrice = function(){};
					this.setName = function(){};
					this.setPrice = function(){};
					
					// 公有方法及属性
					this.copy = function(){};
					this.name = newName;
				}
				_book.prototype = {
					// 静态公有方法及属性
					isJSBook : false,
					display : function(){}
				}
				return _book;
			})();
		</script>
	</body>
</html>
